<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;

class Register extends Mailable
{
    use Queueable, SerializesModels;

    /**
     * Create a new message instance.
     * @param $arr
     * @return void
     */
    public $arr;
    public function __construct($arr)
    {
        $this->arr = $arr;
        //
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
//        file_put_contents(storage_path('logs').DIRECTORY_SEPARATOR.'debug.log',
//            json_encode($this->arr),FILE_APPEND);
        return $this->text('mails.register');
    }
}
